<?php
/**
 * Intreface DAO
 *
 * @author: Dragan Milchevski
 * @date: 2012-06-23 13:23
 */
interface ProjectsDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return Projects 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param project primary key
 	 */
	public function delete($projectID);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param Projects project
 	 */
	public function insert($project);
	
	/**
 	 * Update record in table
 	 *
 	 * @param Projects project
 	 */
	public function update($project);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByUserID($value);

	public function queryByProject($value);
	
	public function queryByDocument($value);


	public function deleteByUserID($value);

	public function deleteByProject($value);
	
	public function insertProjectsfiles($project_id,$document_id);


}
?>